package com.example.administrator.hello.AndroidText;

/**
 * 对各个Page类进行管理，提供路口
 * Created by Administrator on 2017/7/15.
 */

public class PageHelper {
    private Finder finder;
    private PageCommon pageCommon;
    private PageMy pageMy;
    private PageLogin pageLogin;
    private PageSetting pageSetting;
    private PageAbout pageAbout;

    public PageHelper(Finder finder) {
        this.finder = finder;
    }

    public PageCommon getPageCommon() {
        if (pageCommon == null) {
            pageCommon = new PageCommon(finder);
        }
        return pageCommon;
    }

    public PageMy getPageMy() {
        if (pageMy == null) {
            pageMy = new PageMy(finder);
        }
        return pageMy;
    }

    public PageLogin getPageLogin() {
        if (pageLogin == null) {
            pageLogin = new PageLogin(finder);
        }
        return pageLogin;
    }

    public PageSetting getPageSetting() {
        if (pageSetting == null) {
            pageSetting = new PageSetting(finder);
        }
        return pageSetting;
    }

    public PageAbout getPageAbout() {
        if (pageAbout == null) {
            pageAbout = new PageAbout(finder);
        }
        return pageAbout;
    }

}
